<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/images/js/ckeditor/ckeditor.js"></script>
<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'mobile-article-form',
	'enableAjaxValidation'=>false,
)); ?>


	<?php echo $form->errorSummary($model); ?>
	<?php if(!$model->moea_time) {?>
	<input type="hidden" name="mobile_article[moea_time]" value="<?php echo time();?>">
	<?php }?>
	<div class="row">
		<?php echo $form->labelEx($model,'moea_title'); ?>
		<?php echo $form->textField($model,'moea_title',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'moea_title'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'moea_desc'); ?>
		<textarea id="mobile_article[moea_desc]" name="mobile_article[moea_desc]" style="width: 450px; height: 200px;">
			<?php echo trim($model->moea_desc)?>
		</textarea>
		<?php echo $form->error($model,'moea_desc'); ?>
	</div>
	<!--
	<div class="row">
		<?php echo $form->labelEx($model,'moea_tag'); ?>
		<?php echo $form->textField($model,'moea_tag',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'moea_tag'); ?>
	</div>
	-->
	<div class="row">
		<?php echo $form->labelEx($model,'moea_content'); ?>
		<textarea id="mobile_article[moea_content]" name="mobile_article[moea_content]">
			<?php echo $model->moea_content?>
		</textarea>
		<script type="text/javascript">
			CKEDITOR.replace( 'mobile_article[moea_content]' );
		</script>
		<?php echo $form->error($model,'moea_content'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? '增加' : '保存'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->